package com.tuanzi.loan.web.lazy.credit;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.credit.LoanCreditOrderStatNotEntranceService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.credit.LoanCreditOrderStatNotEntranceRequest;
import com.tuanzi.loan.vo.response.credit.LoanCreditOrderStatNotEntranceResponse;

/**
* @author chenweijun 
* @version 2018年5月6日
*/
public class LoanCreditOrderStatNotEntranceLazyDataModel extends BaseLazyDataModel<LoanCreditOrderStatNotEntranceRequest, LoanCreditOrderStatNotEntranceResponse> {

	private static final long serialVersionUID = -4325497164966239221L;
	
	private LoanCreditOrderStatNotEntranceService loanCreditOrderStatNotEntranceService = SpringContextHolder.getBean(LoanCreditOrderStatNotEntranceService.class);

	public LoanCreditOrderStatNotEntranceLazyDataModel(LoanCreditOrderStatNotEntranceRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<LoanCreditOrderStatNotEntranceResponse> doLoad(
			PageSearcher<LoanCreditOrderStatNotEntranceRequest> pageSearcher) {
		return loanCreditOrderStatNotEntranceService.list(pageSearcher);
	}

}
